﻿

Public Module XboxExtensions

    <System.Runtime.CompilerServices.Extension()> _
    Friend Function ToPresenceString(ByVal Value As DMXIProxy.XboxInfo) As String
        If Value.PresenceInfo.Info = "" Then
            Return ""
        ElseIf Value.PresenceInfo.Info2 = "" Then
            Return Value.PresenceInfo.Info
        Else
            Return String.Format("{0} ({1})", Value.PresenceInfo.Info, Value.PresenceInfo.Info2)
        End If
    End Function

End Module

